import { ParameterizedContext } from 'koa'
import userService from '../service/user.service'

class UserController {
  async findById(ctx: ParameterizedContext) {
    const { id } = ctx.user
    ctx.body = await userService.getUserById(id)
  }
}

export default new UserController()
